﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="listNguoiTimNguon.ascx.cs" Inherits="admin_listNguoiTimNguon" %>
<table cellspacing="0" cellpadding="3" width="100%" border="0">
    <tr>
		<td align="left" class="HeadingTree">Danh sách Người tìm nguồn</td>
		<td align="left" valign="top" class="HeadingTree">
		     <asp:label id="lblNguon" runat="server"  Text="Nguồn:" />
		     <asp:DropDownList id="ddlNguon" accessKey="m" runat="server" AutoPostBack="true"   onselectedindexchanged="ddlNguon_SelectedIndexChanged" />
		</td>
	</tr>
	<tr>
		<td align="left" valign="top" style="height:524px;" colspan="2">
            <table cellspacing="0" cellpadding="1" width="100%" border="0">
	            <tr>
		            <td colspan="6">
		                <asp:validationsummary id="vdsNguoiTimNguon" CssClass="cssManField" runat="server" Font-Bold="true" />
		                <asp:label id="lblMess" CssClass="cssManField" runat="server" />
		            </td>
	            </tr>
	            <tr>
		            <td align="right" style="width:15%;">
		                <asp:label id="lblFullName" CssClass="cssManField" runat="server"  Text="<U>H</U>ọ tên:" />
		            </td>
		            <td style="width:30%;" >
		                <asp:TextBox id="txtHoTen"    runat="server" Width="100%" MaxLength="256" />
		            </td>
		            <td align="center" style="width:5%;">
		                <asp:CustomValidator id="ctvFullName" runat="server" ControlToValidate="txtHoTen" ErrorMessage="Bạn phải nhập tên đầy đủ" Display="Static" Text="*" />
		            </td>
		            <td width="15%" align="right">
		                <asp:label id="lblSex" CssClass="cssLabel" runat="server" Text="<U>G</U>ới tinh:" />
	                </td>
		            <td  width="30%">
                       <asp:DropDownList id="ddlSex" runat="server" Width="100%">
                            <asp:ListItem Text="Nam" Value="true"></asp:ListItem>
                            <asp:ListItem Text="Nữ" Value="false"></asp:ListItem>
                        </asp:DropDownList>
		            </td>
		             <td align="center" style="width:5%;"></td>
	            </tr>
	            <tr>
		            <td align="right">
		                <asp:label id="lblTell" CssClass="cssLabel" runat="server" Text="<U>Ð</U>iện thoại:" />
	                </td>
		            <td>
		                <asp:TextBox id="txtDienThoai" accessKey="t"   runat="server" Width="100%" MaxLength="20" />
		            </td>
            		<td ></td>
		            <td align="right" >
		                <asp:label id="lblDiDong" CssClass="cssLabel" runat="server" Text="<U>D</U>i động:" />
                    </td>
		            <td>
		                 <asp:TextBox  id="txtDiDong" accessKey="t"   runat="server" Width="100%" MaxLength="20" />
		            </td>	
            		<td ></td>  
	            </tr>
	            <tr>
		            <td align="right" >
                        <asp:label id="lblEmail" CssClass="cssLabel" runat="server" Text="<U>E</U>mail:" />
                    </td>
		            <td  >
                        <asp:TextBox id="txtEmail"   runat="server" Width="100%" MaxLength="64" />
		            </td>	
		            <td ></td>
		            <td align="right">
                        <asp:label id="lblFax" CssClass="cssLabel" runat="server" Text="<U>F</U>ax:" />
            			
	                </td>
		            <td >
		                <asp:TextBox  id="txtFax" accessKey="t"   runat="server" Width="100%" MaxLength="20" />
                    </td>
		            <td ></td>
	            </tr>
	            <tr>
	                
		            <td align="right" >
		                <asp:label id="lblAddressName" CssClass="cssLabel" runat="server" Text="<U>Ð</U>ịa chỉ:" />
		            </td>
		            <td colspan="4">
		                <asp:TextBox id="txtDiaChi"    runat="server"  Width="100%"  MaxLength="256" />
		            </td>
		            <td  align="center"></td>
	            </tr>
                <tr>
                    <td align="right" valign="top">
                        <asp:Label ID="lblGhiChu" runat="server" CssClass="cssLabel" Text="<U>G</U>hi chú:" />
                    </td>
                    <td colspan="4">
		                <asp:TextBox id="txtGhiChu"  onfocus="focus_input(this);"  onblur="blur_input(this);" runat="server" Width="100%" MaxLength="1024" Rows="3"  TextMode="MultiLine" />
                    </td>
                    <td ></td>
                </tr>

	            <tr>
		            <td align="right"></td>
		            <td align="left" colspan="5" >
		                <asp:button id="btnInsert" accessKey="c" CssClass="cssButton" runat="server" Width="98px" Text="Tạo mới(c)" OnClick="btnInsert_Click" />&nbsp;&nbsp;
			            <asp:button id="btnUpdate" accessKey="c" CssClass="cssButton" runat="server" Width="98px" Text="Cập nhật(s)" onclick="btnUpdate_Click"  />&nbsp;&nbsp;
		                <asp:button id="btnReset" accessKey="r" CssClass="cssButton" runat="server" Width="98px" Text="Xóa trắng(r)" onclick="btnReset_Click" />
		                <input id="hdfNguoiTimNguonID" type="hidden" name="hdfNguoiTimNguonID" runat="server" />
		            </td>		
	            </tr>
	            <tr>
		            <td align="center" colSpan="6" style="height:404px;" valign="top">
		                <asp:GridView id="ddlNguoiTimNguon" runat="server" Width="100%" CellPadding="0" CellSpacing="0" 
		                    AutoGenerateColumns="False" AllowPaging="true" 
		                    HeaderStyle-CssClass="cssGridHeader" EditRowStyle-CssClass="cssGridEdit" RowStyle-CssClass="cssGridCell" 
		                    AlternatingRowStyle-CssClass="cssGridAlterCell"  
                            PagerStyle-CssClass="cssGridPager" SelectedRowStyle-CssClass="cssSelectedRow"
				            DataKeyNames="ID" PageSize="16"
				            OnRowDataBound="ddlNguoiTimNguon_RowDataBound" OnRowDeleting="ddlNguoiTimNguon_RowDeleting" 
                            OnPageIndexChanging="ddlNguoiTimNguon_PageIndexChanging" OnRowEditing="ddlNguoiTimNguon_RowEditing"
                            AllowSorting="True" 
                            onsorting="ddlNguoiTimNguon_Sorting">
<RowStyle CssClass="cssGridCell"></RowStyle>
				            <Columns>
					            <asp:TemplateField Visible="False">
						            <ItemTemplate>
							            <asp:Label id=NguoiTimNguonID runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
						            </ItemTemplate>
					            </asp:TemplateField>
					            <asp:BoundField DataField="Seq" SortExpression="Seq" 
                                    ControlStyle-Font-Underline="false"  HeaderStyle-ForeColor="White" 
                                    HeaderText="TT" ItemStyle-Width="4%" ItemStyle-HorizontalAlign="Right" >
                                        <ControlStyle Font-Underline="False"></ControlStyle>

                                        <HeaderStyle ForeColor="White"></HeaderStyle>

                                        <ItemStyle HorizontalAlign="Right" Width="4%"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="HoTen" SortExpression="HoTen" 
                                            ControlStyle-Font-Underline="false"  HeaderStyle-ForeColor="White" 
                                            HeaderText="Họ tên" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" >
                                        <ControlStyle Font-Underline="False"></ControlStyle>
                                        <HeaderStyle ForeColor="White"></HeaderStyle>
                                        <ItemStyle HorizontalAlign="Left" Width="15%"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="DiaChi" SortExpression="DiaChi" ControlStyle-Font-Underline="false"  HeaderStyle-ForeColor="White" 
                                                HeaderText="Địa chỉ" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" >
                                            <ControlStyle Font-Underline="False"></ControlStyle>
                                            <HeaderStyle ForeColor="White"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Left" Width="15%"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Email" SortExpression="Email" 
                                                ControlStyle-Font-Underline="false"  HeaderStyle-ForeColor="White" 
                                                HeaderText="Email" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" >
                                            <ControlStyle Font-Underline="False"></ControlStyle>

                                            <HeaderStyle ForeColor="White"></HeaderStyle>

                                            <ItemStyle HorizontalAlign="Left" Width="15%"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Dienthoai" SortExpression="Dienthoai" 
                                            ControlStyle-Font-Underline="false"  HeaderStyle-ForeColor="White" 
                                            HeaderText="Điện thoại" ItemStyle-Width="12%" ItemStyle-HorizontalAlign="Left" >
                                            <ControlStyle Font-Underline="False"></ControlStyle>
                                            <HeaderStyle ForeColor="White"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Left" Width="12%"></ItemStyle>
                                        </asp:BoundField>
					                                                    <asp:BoundField DataField="DiDong" SortExpression="DiDong" 
                                                                            ControlStyle-Font-Underline="false"  HeaderStyle-ForeColor="White" 
                                                                            HeaderText="Di động" ItemStyle-Width="12%" ItemStyle-HorizontalAlign="Left" >
                                        <ControlStyle Font-Underline="False"></ControlStyle>

                                        <HeaderStyle ForeColor="White"></HeaderStyle>

                                        <ItemStyle HorizontalAlign="Left" Width="12%"></ItemStyle>
                                                                        </asp:BoundField>
					                                                    <asp:TemplateField HeaderText="Chức năng" HeaderStyle-HorizontalAlign="Center">

                                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>

						                                                    <ItemStyle HorizontalAlign="Center" Width="8%"></ItemStyle>
						                                                    <ItemTemplate>
						                                                        <asp:ImageButton id="ImageButton1" accessKey="c" runat="server" ImageUrl="~/images/Button/Edit.gif"  ToolTip="Sửa bản ghi" CommandName="Edit" />&nbsp;
						                                                        <asp:ImageButton id="ImageButton2" accessKey="c" runat="server" ImageUrl="~/images/Button/Delete.gif"  ToolTip="Xóa bản ghi" CommandName="delete" />
						                                                    </ItemTemplate>
					                                                    </asp:TemplateField>					
				                                                    </Columns>

                                        <PagerStyle CssClass="cssGridPager"></PagerStyle>

                                        <SelectedRowStyle CssClass="cssSelectedRow"></SelectedRowStyle>

                                        <HeaderStyle CssClass="cssGridHeader"></HeaderStyle>

                                        <EditRowStyle CssClass="cssGridEdit"></EditRowStyle>

                                        <AlternatingRowStyle CssClass="cssGridAlterCell"></AlternatingRowStyle>
	                       </asp:GridView>
		            </td>
	            </tr>	
            </table>
		</td>
	</tr>
</table>
